<?

//require(dirname(__FILE__) . "/sessao_init.php");

require(dirname(__FILE__) . "/adodb/session/adodb-session2.php");
ADOdb_Session::config(BD_TIPO, MYSQL_SERVER, MYSQL_USER, MYSQL_SENHA, MYSQL_DB, $options=false);
session_start();


function sessao_get($var) {
			
	$sessao_get = $_SESSION[$var];
	
	if ( $sessao_get <> "")
		return $sessao_get;
		
	return false;
	
} /* sessao_get */

function sessao_set($var, $value) {
			
	$_SESSION[$var] = str_replace("'", "", str_replace("\\", "", $value));
	
	return $_SESSION[$var];
	
} /* sessao_set */

function sessao_del($var) {
	
		unset( $_SESSION[$var] );
	
} /* sessao_del */

function sessao_destroi() {
			
		session_destroy();
		
	
} /* sessao_del */

?>